#include<iostream>
using namespace std;
#include<array>

void main()
{
	array<int,8>vec{ 1,5,6,8,1,5,3,4 };
	for (int i = vec.size() - 1; i > 0; i--)
	{
		for (int j = 0; j < i; j++)
		{
			if (vec[i] > vec[j])
			{
				int temp = vec[i];
				vec[i] = vec[j];
				vec[j] = temp;
			}
		}
	}

	for (auto iter : vec)
	{
		cout << iter << endl;
	}
	cout << "hello world" << endl;

	system("pause");
	return;
}